#ifndef TCP_CLIENT_TRANSFER_SESSION_H
#define TCP_CLIENT_TRANSFER_SESSION_H

#include "Common.h"
#include "type.h"
#include "ClientTransferSession.h"

class TcpClientTransferSession : public ClientTransferSession
{
public:
	TcpClientTransferSession(string local_addr,
			                 int local_port);
	virtual ~TcpClientTransferSession();
	virtual void wait_for_recv();
	virtual int send_data(string filename,
				     string remote_addr,
				     int remote_port);

protected:
	virtual int recv_data(string filename);

private:
	SessionState m_tcp_state;
};

#endif
